<?php

namespace App\Kuafu\Mqtt\Enum;

class MqttCodeEnum
{
    // 支付 成功
    public const MQTT_COMMAND_PAY_SUCCESS = 'paySuccess';
    // 更新 菜单
    public const MQTT_COMMAND_UPDATE_PRODUCT_MENU = 'updateProductMenu';
    // 更新 支付方式
    public const MQTT_COMMAND_UPDATE_PAYMENT = 'updatePayment';
    // 外卖 订单推送
    public const MQTT_COMMAND_WAI_MAI_TAKE_OUT = 'takeOutOrder';
    // 订单叫号
    public const MQTT_COMMAND_ORDER_CALL_NUM = 'orderCallNum';
    // 设备更新配置
    public const MQTT_COMMAND_UPDATE_DEVICE_CONFIG = 'updateDeviceConfig';


//     自定义支付 变更
//    public const MQTT_COMMAND_UPDATE_CUSTOM_PAYMENT = 'updateCustomPayment';

    //年费订单提醒
    public const MQTT_COMMAND_FEE_ORDER_REMIND = 'feeOrderRemind';

    // 外卖的状态变更
    const TAKE_OUT_OPERATE_TYPE_1  = 1; // 下单
    const TAKE_OUT_OPERATE_TYPE_2  = 2; // 商家接单
    const TAKE_OUT_OPERATE_TYPE_3  = 3; // 配送中
    const TAKE_OUT_OPERATE_TYPE_4  = 4; // 订单完成
    const TAKE_OUT_OPERATE_TYPE_5  = 5; // 订单取消
    const TAKE_OUT_OPERATE_TYPE_6  = 6; // 订单待配送
    const TAKE_OUT_OPERATE_TYPE_7  = 7; // 预约单提醒
    const TAKE_OUT_OPERATE_TYPE_8  = 8; // 弹框版自动出餐提醒
    const TAKE_OUT_OPERATE_TYPE_9  = 9; // 弹框版预约单提醒
    const TAKE_OUT_OPERATE_TYPE_10 = 10; // 兜底强制自动出餐提醒
    const TAKE_OUT_OPERATE_TYPE_11 = 11; // 已拒单
}
